﻿//-------------------------------------------------------------------------------
// LLAMADA AJAX
//-------------------------------------------------------------------------------
function Ajax(Metodo, Data, funcOk, paramOk)
{
    $.ajax({
        type: "POST",
        dataType: "json",
        data: Data,
        url: "WSHoteles.asmx/" + Metodo,
        contentType: "application/json; charset=utf-8",
        success: function (res) {
            funcOk(res, paramOk);
        },
        error: Error
    });
}

//-------------------------------------------------------------------------------
// ERROR AJAX
//-------------------------------------------------------------------------------
function Error()
{
    MostrarAlerta('No se pudo conectar a FourHoteles. ', 2);
}

